package vip.onepass.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import vip.onepass.mapper.ColudFileMapper;
import vip.onepass.mapper.ColudUserMapper;
import vip.onepass.model.ColudFile;
import vip.onepass.model.ColudUser;
import vip.onepass.service.ColudService;

@Service
@Transactional
public class ColudServiceImpl implements ColudService {
	@Resource
	ColudUserMapper coludUserMapper;
	@Resource
	ColudFileMapper coludFileMapper;

	public void save(ColudUser coludUser) {
		// TODO Auto-generated method stub
		coludUserMapper.save(coludUser);
	}

	public ColudUser findByUserName(String coludUserName) {
		// TODO Auto-generated method stub
		ColudUser coludUser = coludUserMapper.findByUserName(coludUserName);
		return coludUser;
	}

	@Override
	public void save(ColudFile coludFile) {
		// TODO Auto-generated method stub
		coludFileMapper.save(coludFile);
	}

	@Override
	public ColudFile getFileByColudId(String coludId) {
		// TODO Auto-generated method stub
		return coludFileMapper.getFileByColudId(coludId);
	}

	@Override
	public void update(ColudFile coludFile) {
		// TODO Auto-generated method stub
		coludFileMapper.update(coludFile);
	}
	

}
